import request from '@u/request'
import { header } from '@/api/project-update/tempHeader'

const gateway = '/project'
// const gateway = 'http://localhost:8080/city/local'

export function getApprovalList(id) {
  return request({
    url: `${gateway}/process/selectApprovalList/` + id,
    method: 'get',
    headers: { ...header },
  })
}

export function performApprovals(data) {
  return request({
    url: `${gateway}/process/insertApproval`,
    method: 'post',
    data,
    headers: { ...header },
  })
}

export function getChangeList(id) {
  return request({
    url: `${gateway}/process/selectChangeList/` + id,
    method: 'get',
    headers: { ...header },
  })
}

export function getHistoryInfo(params) {
  return request({
    url: `${gateway}/project/select/history`,
    method: 'get',
    params,
    headers: { ...header },
  })
}
